package cn.wolfcode.service;

import cn.wolfcode.domain.Department;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IDepartmentService {

    void delete(Long id);//删除
    void save(Department department);//增加
    Department get(Long id);//查一个
    List<Department> listAll();//查所有
    void update(Department department);//修改
    //分页查询
    PageInfo<Department> query(QueryObject qo);
}
